-- CALC_MISSIONARY_WRECKAGE_BONUS

-- 计算【主教的阴谋】传教士的残骸奖励
return function(user, bonusArg)
    local rand = DungeonM.getRandSeed("CALC_MISSIONARY_WRECKAGE_BONUS") % 100;
    local bonus = {};
    
    if rand < 50 then
        if BuildingBonusM.getFieldStat("dathomir_gem") <= 0 then
            bonus = { { 1, 7505, 1 }, { 1, 7007, 1 }, };
        else
            bonus = { { 1, 7506, 1 }, { 1, 7007, 1 }, };
        end
    else
        if BuildingBonusM.getFieldStat("osdeagar_gem") <= 0 then
            bonus = { { 1, 7507, 1 }, { 1, 7007, 1 }, };
        else
            bonus = { { 1, 7508, 1 }, { 1, 7007, 1 }, };
        end
    end

    return bonus;
end